export const state=()=>{ 
    return{
        questions:[]
    }
}
export const mutations={
    SET_QUESTIONS(state,data){
        state.questions=data
    }

}
export const actions={
    async getQuestionData({commit},$axios){
        let {data}=await $axios.get('http://localhost:2345/questions/examList')
        // console.log(data.data);
        commit("SET_QUESTIONS",data.data)
    }
}
export const getters={ 
    
}